package com.xbh.management.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @program: management-center
 * @description:
 * @author: 许宝华
 * @create: 2021-09-19 12:43
 */

@FeignClient(value = "captcha-provider")
public interface CaptchaFeignService {
    //验证码生成
    @GetMapping("/captcha/save")
    public String captcha(@RequestParam("request") HttpServletRequest request, @RequestParam("response") HttpServletResponse response) throws Exception;

    //生成PNG类型的验证码
    @GetMapping("/captcha/savePng")
    public String captchaPng(@RequestParam("request") HttpServletRequest request, @RequestParam("response") HttpServletResponse response) throws Exception;
}
